package com.augurit.common.base.form;

public class ResultForm<T> {

	//属性
	private boolean success; 	//是否执行成功
	private T result;  			//返回结果
	private String errMsg; 		//错误消息
	
	
	public ResultForm(final boolean success){
		this.success = success;
	}
	
	public ResultForm(final boolean success, String errMsg){
		this.success = success;
		this.errMsg = errMsg;
	}
	
	public ResultForm(final boolean success, T result){
		this.success = success;
		this.result = result;
	}
	
	public T getResult() {
		return result;
	}
	public boolean isSuccess() {
		return success;
	}
	
	public String getErrMsg() {
		return errMsg;
	}
	public void setResult(T result) {
		this.result = result;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}

	public void setErrMsg(String errMsg) {
		this.errMsg = errMsg;
	}
}
